//
//  ThreeViewController.m
//  BaseView
//
//  Created by 隗杰 on 16/3/31.
//  Copyright © 2016年 baobao. All rights reserved.
//

#import "ThreeViewController.h"
#import "FourViewController.h"
@interface ThreeViewController ()

@end

@implementation ThreeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor yellowColor];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"下一页" style: UIBarButtonItemStylePlain target:self action:@selector(nextPage)];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"上一页" style: UIBarButtonItemStylePlain target:self action:@selector(lastPage)];
}
- (void)nextPage {
    [self.navigationController pushViewController:[[FourViewController alloc] init] animated:YES];
}
- (void)lastPage {
    [self.navigationController popViewControllerAnimated:YES];
    
}
@end
